package il.ac.tau.cg.ex3.entities.surfaces;

import il.ac.tau.cg.ex3.entities.styles.Material;
import il.ac.tau.cg.ex3.math.shapes.Rectangle;
import il.ac.tau.cg.ex3.math.shapes.Shape;

public class RectangleSurface extends Surface
{
	private Rectangle rectangle;
	
	public RectangleSurface(Material material, Rectangle rectangle)
	{
		super(material);
		
		this.rectangle = rectangle;
	}
	
	public void setRectangle(Rectangle rectangle)
	{
		this.rectangle = rectangle;
	}
	
	public Rectangle getRectangle()
	{
		return rectangle;
	}
	
	@Override
	public int getType()
	{
		return SurfaceTypes.RECTANGLE;
	}

	@Override
	public Shape getShape()
	{
		return rectangle;
	}
}
